<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="keywords" content="请替换为您的关键字">
  <meta name="description" content="请替换为您的描述">
  <title>评价</title>
  <!-- bower:css -->
  <link rel="stylesheet" href="../bower_components/normalize-css/normalize.css" />
  <link rel="stylesheet" href="../bower_components/swiper/dist/css/swiper.css" />
  <!-- endbower -->
  <!-- mui picker -->
  <!--<link rel="stylesheet" href="verdors/dcloud-mui/plugin/picker/dist/css/mui.picker.all.css">-->
  <link rel="stylesheet" href="verdors/dcloud-mui/examples/hello-mui/css/mui.picker.css">
  <link rel="stylesheet" href="verdors/dcloud-mui/examples/hello-mui/css/mui.poppicker.css">
  <link rel="stylesheet" href="fonts/iconfont.css">
  <link rel="stylesheet" href="styles/main.css">
</head>
<body class="bg-gray">
  <div class="container">
    <!-- 示意图 -->
    <div class="row">
      <div class="col-xs-12 text-center">
        <img src="imgs/evaluation.png" alt="">
      </div>
    </div>
    <!-- /示意图 -->

    <!-- 信息录入 -->
    <form class="form-horizontal wl-form">
      <div class="wl-form-mutil">

        <div class="wl-form-group picker">
          <label class="col-xs-5">选择星级</label>
          <div class="col-xs-7">
            <p id='showUserPicker' class="ui-alert">请选择</p>
          </div>
        </div>
        <hr>
        <div class="wl-form-group">
          <div class="col-xs-12">
            <textarea name="" id="" cols="30" rows="3" placeholder="请输入描述"></textarea>
          </div>
        </div>
      </div>
    </form>
    <!-- /信息录入 -->
    <div class="row">
      <div class="col-xs-12">
        <a href="##">点击发送短信，请在9:00-18:00点击拨号</a>
      </div>
    </div>

    <div class="row submitBtns">
      <div class="col-xs-6">
        <a href="##" class="btn btn-primary btn-lg btn-block">一键评价</a>
      </div>
      <div class="col-xs-6">
        <a href="##" class="btn btn-default btn-lg btn-block">开取发票</a>
      </div>
    </div>
  </div>

<!-- bower:js -->
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../bower_components/swiper/dist/js/swiper.js"></script>
<script src="../bower_components/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<!-- endbower -->
  <script src="verdors/dcloud-mui/examples/hello-mui/js/mui.min.js"></script>
  <script src="verdors/dcloud-mui/examples/hello-mui/js/mui.picker.js"></script>
  <script src="verdors/dcloud-mui/examples/hello-mui/js/mui.poppicker.js"></script>
<script>
  (function($, doc) {
    $.init();
    $.ready(function() {
      /**
       * 获取对象属性的值
       * 主要用于过滤三级联动中，可能出现的最低级的数据不存在的情况，实际开发中需要注意这一点；
       * @param {Object} obj 对象
       * @param {String} param 属性名
       */
      var _getParam = function(obj, param) {
        return obj[param] || '';
      };
      // 选择充电枪
      var userPicker = new $.PopPicker();
      userPicker.setData([{
        text: '☆'
      }, {
        text: '☆☆'
      }, {
        text: '☆☆☆'
      }, {
        text: '☆☆☆☆'
      }, {
        text: '☆☆☆☆☆'
      }]);
      var showUserPickerButton = doc.getElementById('showUserPicker');
      var userResult = doc.getElementById('showUserPicker');
      showUserPickerButton.addEventListener('tap', function(event) {
        userPicker.show(function(items) {
          userResult.innerText = items[0].text;
          //返回 false 可以阻止选择框的关闭
          //return false;
        });
      }, false);

    });
  })(mui, document);
</script>
</body>
</html>
